<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>SystemSharp: Component.cs Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">SystemSharp
   &#160;<span id="projectnumber">0.3</span>
   </div>
   <div id="projectbrief">A system-level modeling framework for designing real-time embedded systems</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_component_8cs_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Properties</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Events</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">Component.cs</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_component_8cs.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="keyword">using</span> System;</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="keyword">using</span> System.Collections.Generic;</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="keyword">using</span> System.Linq;</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="keyword">using</span> System.Reflection;</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="keyword">using</span> System.Runtime.CompilerServices;</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="keyword">using</span> System.Text;</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="keyword">using</span> System.Threading.Tasks;</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="keyword">using</span> SystemSharp.Analysis;</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="keyword">using</span> SystemSharp.DataTypes;</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="keyword">using</span> SystemSharp.Meta;</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="keyword">using</span> SystemSharp.Synthesis;</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="keyword">using</span> SystemSharp.SysDOM;</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="keyword">namespace </span>SystemSharp.Components</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;{</div>
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_component.html">   38</a></span>&#160;    <span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="class_system_sharp_1_1_components_1_1_component.html">Component</a> :</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;        <a class="code" href="class_system_sharp_1_1_components_1_1_design_object.html">DesignObject</a>,</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;        <a class="code" href="interface_system_sharp_1_1_meta_1_1_i_descriptive.html">IDescriptive</a>&lt;ComponentDescriptor&gt;,</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;        <a class="code" href="interface_system_sharp_1_1_meta_1_1_i_containment_implementor.html">IContainmentImplementor</a></div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    {</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;        <span class="keyword">private</span> <span class="keyword">class </span>ComponentBehaviorComparer : IEqualityComparer&lt;Component&gt;</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;        {</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;            <span class="keyword">public</span> <span class="keywordtype">bool</span> Equals(<a class="code" href="class_system_sharp_1_1_components_1_1_component.html">Component</a> x, <a class="code" href="class_system_sharp_1_1_components_1_1_component.html">Component</a> y)</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;            {</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;                <span class="keywordflow">return</span> x.IsEquivalent(y);</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;            }</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;            <span class="keyword">public</span> <span class="keywordtype">int</span> GetHashCode(<a class="code" href="class_system_sharp_1_1_components_1_1_component.html">Component</a> obj)</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;            {</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;                <span class="keywordflow">return</span> obj.GetBehaviorHashCode();</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;            }</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;        }</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;</div>
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_component.html#a08efdba561f12337f6b9fced61ba185a">   59</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> readonly IEqualityComparer&lt;Component&gt; BehaviorComparer = <span class="keyword">new</span> ComponentBehaviorComparer();</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;        <span class="keyword">private</span> <span class="keyword">static</span> readonly <a class="code" href="class_system_sharp_1_1_components_1_1_event.html">Event</a>[] emptyEvents = <span class="keyword">new</span> <a class="code" href="class_system_sharp_1_1_components_1_1_event.html">Event</a>[0];</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_component.html#a0ce99f29f1660e61df39f66149a66c20">   65</a></span>&#160;        <span class="keyword">public</span> <a class="code" href="class_system_sharp_1_1_components_1_1_component.html#a0ce99f29f1660e61df39f66149a66c20">Component</a>()</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;        {</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;            Context.OnElaborate += Initialize;</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;            Context.OnEndOfConstruction += PreInitialize;</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;            Context.OnEndOfElaboration += PostInitialize;</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;            Context.OnAnalysis += OnAnalysis;</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;            Context.OnSimulationStopped += OnSimulationStopped;</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;            Context.RegisterComponent(<span class="keyword">this</span>);</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;            Descriptor = <span class="keyword">new</span> <a class="code" href="class_system_sharp_1_1_meta_1_1_component_descriptor.html">ComponentDescriptor</a>(<span class="keyword">this</span>);</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;            AutoBinder = <span class="keyword">new</span> <a class="code" href="class_system_sharp_1_1_components_1_1_default_auto_binder.html">DefaultAutoBinder</a>(<span class="keyword">this</span>);</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;            Representant = <span class="keyword">this</span>;</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;        }</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;</div>
<div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_component.html#a7efe2d00ea2effb2ac11a747a9ea28c4">   81</a></span>&#160;        <span class="keyword">public</span> <a class="code" href="class_system_sharp_1_1_components_1_1_component.html">Component</a> Parent { [<a class="code" href="class_system_sharp_1_1_components_1_1_static_evaluation.html">StaticEvaluation</a>] <span class="keyword">get</span>; <span class="keyword">private</span> set; }</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;<span class="preprocessor">        #region await helper members</span></div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;<span class="preprocessor"></span>        <span class="keyword">public</span> <span class="keyword">static</span> <a class="code" href="class_system_sharp_1_1_components_1_1_predicated_event.html">PredicatedEvent</a> Tick </div>
<div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_component.html#a6e2054f4f825ab32c05e569d315967f9">   88</a></span>&#160;        { </div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;            [<a class="code" href="class_system_sharp_1_1_analysis_1_1_tick_attribute.html">TickAttribute</a>]</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;            <span class="keyword">get</span> </div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;            {</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;                var curps = DesignContext.Instance.CurrentProcess;</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;                var sens = curps.Sensitivity;</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;                var pred = curps.Predicate;</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;                <span class="keywordflow">if</span> (sens == null || pred == null)</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;                    <span class="keywordflow">throw</span> <span class="keyword">new</span> InvalidOperationException(<span class="stringliteral">&quot;Process &quot;</span> + curps.Name + <span class="stringliteral">&quot; has no associated sensitivity and predicate. Tick is only allowed for clocked processes.&quot;</span>);</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;                <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="class_system_sharp_1_1_components_1_1_predicated_event.html">PredicatedEvent</a>(null,</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;                    <span class="keyword">new</span> <a class="code" href="class_system_sharp_1_1_components_1_1_multi_event.html">MultiEvent</a>(null, sens), pred);</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;            } </div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;        }</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;        [<a class="code" href="class_system_sharp_1_1_components_1_1_map_to_wait_n_ticks_rewrite_await.html">MapToWaitNTicksRewriteAwait</a>]</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;        [<a class="code" href="class_system_sharp_1_1_components_1_1_map_to_wait_n_ticks_rewrite_call.html">MapToWaitNTicksRewriteCall</a>]</div>
<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_component.html#a1de96fc4579daeff4ecfd6595e1db3f5">  108</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> async Task <a class="code" href="class_system_sharp_1_1_components_1_1_component.html#a1de96fc4579daeff4ecfd6595e1db3f5">NTicks</a>(<span class="keywordtype">int</span> numTicks) </div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;        { </div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;            await numTicks.Ticks(); </div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;        }</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;        </div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;        [<a class="code" href="class_system_sharp_1_1_components_1_1_static_evaluation_do_not_analyze.html">StaticEvaluationDoNotAnalyze</a>]</div>
<div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_component.html#a75ff16ba21959d251ec876313d5d324d">  118</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> <a class="code" href="class_system_sharp_1_1_components_1_1_predicated_event.html">PredicatedEvent</a> <a class="code" href="class_system_sharp_1_1_components_1_1_component.html#a75ff16ba21959d251ec876313d5d324d">RisingEdge</a>(In&lt;StdLogic&gt; clk)</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;        {</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;            <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="class_system_sharp_1_1_components_1_1_predicated_event.html">PredicatedEvent</a>(null, <span class="keyword">new</span> <a class="code" href="class_system_sharp_1_1_components_1_1_multi_event.html">MultiEvent</a>(null, <a class="code" href="class_system_sharp_1_1_components_1_1_design_context.html">DesignContext</a>.<a class="code" href="class_system_sharp_1_1_components_1_1_design_context.html#a3a49f2b84c04d049259fe137115d50c1">MakeEventList</a>(clk)), clk.RisingEdge);</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;        }</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;        [<a class="code" href="class_system_sharp_1_1_components_1_1_static_evaluation_do_not_analyze.html">StaticEvaluationDoNotAnalyze</a>]</div>
<div class="line"><a name="l00128"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_component.html#a810368251d018ad12a4a63b618a7dd2b">  128</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> async Task <a class="code" href="class_system_sharp_1_1_components_1_1_component.html#a810368251d018ad12a4a63b618a7dd2b">NRisingEdges</a>(In&lt;StdLogic&gt; clk, <span class="keywordtype">int</span> numTicks)</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;        {</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;            <span class="keywordflow">for</span> (<span class="keywordtype">int</span> n = 0; n &lt; numTicks; n++)</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;            {</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;                await RisingEdge(clk);</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;            }</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;        }</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;        [<a class="code" href="class_system_sharp_1_1_components_1_1_static_evaluation_do_not_analyze.html">StaticEvaluationDoNotAnalyze</a>]</div>
<div class="line"><a name="l00141"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_component.html#a10bc83162f63c87b8d516572d2e34b50">  141</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> <a class="code" href="class_system_sharp_1_1_components_1_1_predicated_event.html">PredicatedEvent</a> <a class="code" href="class_system_sharp_1_1_components_1_1_component.html#a10bc83162f63c87b8d516572d2e34b50">FallingEdge</a>(In&lt;StdLogic&gt; clk)</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;        {</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;            <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="class_system_sharp_1_1_components_1_1_predicated_event.html">PredicatedEvent</a>(null, <span class="keyword">new</span> <a class="code" href="class_system_sharp_1_1_components_1_1_multi_event.html">MultiEvent</a>(null, <a class="code" href="class_system_sharp_1_1_components_1_1_design_context.html">DesignContext</a>.<a class="code" href="class_system_sharp_1_1_components_1_1_design_context.html#a3a49f2b84c04d049259fe137115d50c1">MakeEventList</a>(clk)), clk.FallingEdge);</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;        }</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;        [<a class="code" href="class_system_sharp_1_1_components_1_1_static_evaluation_do_not_analyze.html">StaticEvaluationDoNotAnalyze</a>]</div>
<div class="line"><a name="l00151"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_component.html#ae591fd0484a69ac722c66ff32d19f0c2">  151</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> async Task <a class="code" href="class_system_sharp_1_1_components_1_1_component.html#ae591fd0484a69ac722c66ff32d19f0c2">NFallingEdges</a>(In&lt;StdLogic&gt; clk, <span class="keywordtype">int</span> numTicks)</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;        {</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;            <span class="keywordflow">for</span> (<span class="keywordtype">int</span> n = 0; n &lt; numTicks; n++)</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;            {</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;                await FallingEdge(clk);</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;            }</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;        }</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;        [<a class="code" href="class_system_sharp_1_1_components_1_1_static_evaluation_do_not_analyze.html">StaticEvaluationDoNotAnalyze</a>]</div>
<div class="line"><a name="l00163"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_component.html#afc8c154c36493b4fbdf4b76ed0d1ecb5">  163</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> <a class="code" href="class_system_sharp_1_1_components_1_1_multi_event.html">MultiEvent</a> <a class="code" href="class_system_sharp_1_1_components_1_1_component.html#afc8c154c36493b4fbdf4b76ed0d1ecb5">Any</a>(params <a class="code" href="interface_system_sharp_1_1_components_1_1_i_in_port.html">IInPort</a>[] signals)</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;        {</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;            <span class="keywordflow">return</span> Any(<a class="code" href="class_system_sharp_1_1_components_1_1_design_context.html">DesignContext</a>.<a class="code" href="class_system_sharp_1_1_components_1_1_design_context.html#a3a49f2b84c04d049259fe137115d50c1">MakeEventList</a>(signals));</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;        }</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;        [<a class="code" href="class_system_sharp_1_1_components_1_1_static_evaluation_do_not_analyze.html">StaticEvaluationDoNotAnalyze</a>]</div>
<div class="line"><a name="l00172"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_component.html#a40334aded171d93dfa44a8aa12ed91bc">  172</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> <a class="code" href="class_system_sharp_1_1_components_1_1_multi_event.html">MultiEvent</a> <a class="code" href="class_system_sharp_1_1_components_1_1_component.html#a40334aded171d93dfa44a8aa12ed91bc">Any</a>(params <a class="code" href="class_system_sharp_1_1_components_1_1_abstract_event.html">AbstractEvent</a>[] events)</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;        {</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;            <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="class_system_sharp_1_1_components_1_1_multi_event.html">MultiEvent</a>(null, events);</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;        }</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;<span class="preprocessor">        #endregion</span></div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00181"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_component.html#a8692f591ead72696120c85c117b96bf4">  181</a></span>&#160;        <span class="keyword">virtual</span> <span class="keyword">protected</span> <span class="keywordtype">void</span> <a class="code" href="class_system_sharp_1_1_components_1_1_component.html#a8692f591ead72696120c85c117b96bf4">Initialize</a>()</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;        {</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;        }</div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;</div>
<div class="line"><a name="l00188"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_component.html#af61fbc9224ffed9332ecc1a21eb79b23">  188</a></span>&#160;        <span class="keyword">virtual</span> <span class="keyword">protected</span> <span class="keywordtype">void</span> <a class="code" href="class_system_sharp_1_1_components_1_1_component.html#af61fbc9224ffed9332ecc1a21eb79b23">PreInitialize</a>()</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;        {</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;        }</div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;</div>
<div class="line"><a name="l00195"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_component.html#a4142ab9ea2e3d7b486cd39a79f1c112d">  195</a></span>&#160;        <span class="keyword">virtual</span> <span class="keyword">protected</span> <span class="keywordtype">void</span> <a class="code" href="class_system_sharp_1_1_components_1_1_component.html#a4142ab9ea2e3d7b486cd39a79f1c112d">PostInitialize</a>()</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;        {</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;        }</div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;</div>
<div class="line"><a name="l00202"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_component.html#a6a810195042b9f3c8cd4ca2f9fe84268">  202</a></span>&#160;        <span class="keyword">virtual</span> <span class="keyword">protected</span> <span class="keywordtype">void</span> <a class="code" href="class_system_sharp_1_1_components_1_1_component.html#a6a810195042b9f3c8cd4ca2f9fe84268">OnSimulationStopped</a>()</div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;        {</div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;        }</div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;</div>
<div class="line"><a name="l00211"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_component.html#abb3edcb7fa090e32393ebfbbc5a5eb2d">  211</a></span>&#160;        <span class="keyword">protected</span> <span class="keywordtype">void</span> <a class="code" href="class_system_sharp_1_1_components_1_1_component.html#abb3edcb7fa090e32393ebfbbc5a5eb2d">Bind</a>(Action bindAction)</div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;        {</div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;            Context.OnEndOfConstruction += bindAction;</div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;        }</div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;</div>
<div class="line"><a name="l00221"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_component.html#a1e6d9b59fa0eb7c82c0684155a340049">  221</a></span>&#160;        <span class="keyword">protected</span> <span class="keywordtype">void</span> <a class="code" href="class_system_sharp_1_1_components_1_1_component.html#a1e6d9b59fa0eb7c82c0684155a340049">AddProcess</a>(Action func, params <a class="code" href="class_system_sharp_1_1_components_1_1_abstract_event.html">AbstractEvent</a>[] sensitive)</div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;        {</div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;            <a class="code" href="class_system_sharp_1_1_components_1_1_process.html">Process</a> process = <span class="keyword">new</span> <a class="code" href="class_system_sharp_1_1_components_1_1_process.html">Process</a>(</div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;                <span class="keyword">this</span>,</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;                <a class="code" href="class_system_sharp_1_1_components_1_1_process.html">Process</a>.<a class="code" href="class_system_sharp_1_1_components_1_1_process.html#abe8ad6117328f0ed4386eb9f95036615">EProcessKind</a>.Triggered,</div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;                func)</div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;            {</div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;                Sensitivity = sensitive</div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;            };</div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;            Context.RegisterProcess(process);</div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;            process.Schedule(0);</div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;        }</div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;</div>
<div class="line"><a name="l00239"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_component.html#abb91da31da19033a4cf1fcfb006dd957">  239</a></span>&#160;        <span class="keyword">protected</span> <span class="keywordtype">void</span> <a class="code" href="class_system_sharp_1_1_components_1_1_component.html#abb91da31da19033a4cf1fcfb006dd957">AddProcess</a>(Action func, params <a class="code" href="interface_system_sharp_1_1_components_1_1_i_in_port.html">IInPort</a>[] sensitive)</div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;        {</div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;            AddProcess(func, <a class="code" href="class_system_sharp_1_1_components_1_1_design_context.html">DesignContext</a>.<a class="code" href="class_system_sharp_1_1_components_1_1_design_context.html#a3a49f2b84c04d049259fe137115d50c1">MakeEventList</a>(sensitive));</div>
<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;        }</div>
<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;</div>
<div class="line"><a name="l00248"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_component.html#ad5ad780d927f150155272e75d0b5944f">  248</a></span>&#160;        <span class="keyword">protected</span> <span class="keywordtype">void</span> <a class="code" href="class_system_sharp_1_1_components_1_1_component.html#ad5ad780d927f150155272e75d0b5944f">AddProcess</a>(Action func)</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;        {</div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;            <a class="code" href="class_system_sharp_1_1_components_1_1_process.html">Process</a> process = <span class="keyword">new</span> <a class="code" href="class_system_sharp_1_1_components_1_1_process.html">Process</a>(</div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;                <span class="keyword">this</span>,</div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;                <a class="code" href="class_system_sharp_1_1_components_1_1_process.html">Process</a>.<a class="code" href="class_system_sharp_1_1_components_1_1_process.html#abe8ad6117328f0ed4386eb9f95036615">EProcessKind</a>.Triggered,</div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;                func);</div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;            Context.RegisterProcess(process);</div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;            process.Schedule(0);</div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;        }</div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;</div>
<div class="line"><a name="l00262"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_component.html#a1bb47ad0d55c37e2193c3e5891ef5e92">  262</a></span>&#160;        <span class="keyword">protected</span> <span class="keywordtype">void</span> <a class="code" href="class_system_sharp_1_1_components_1_1_component.html#a1bb47ad0d55c37e2193c3e5891ef5e92">AddThread</a>(Action func)</div>
<div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;        {</div>
<div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;            <a class="code" href="class_system_sharp_1_1_components_1_1_process.html">Process</a> process = <span class="keyword">new</span> <a class="code" href="class_system_sharp_1_1_components_1_1_process.html">Process</a>(</div>
<div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;                <span class="keyword">this</span>,</div>
<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;                <a class="code" href="class_system_sharp_1_1_components_1_1_process.html">Process</a>.<a class="code" href="class_system_sharp_1_1_components_1_1_process.html#abe8ad6117328f0ed4386eb9f95036615">EProcessKind</a>.Threaded,</div>
<div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;                func);</div>
<div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;            Context.RegisterProcess(process);</div>
<div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;            process.Schedule(0);</div>
<div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;        }</div>
<div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;</div>
<div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;        <span class="keyword">private</span> <a class="code" href="class_system_sharp_1_1_components_1_1_process.html">Process</a> AddClockedThreadInternal(Action func, Func&lt;bool&gt; predicate, params <a class="code" href="interface_system_sharp_1_1_components_1_1_i_in_port.html">IInPort</a>[] sensitive)</div>
<div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;        {</div>
<div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;            <a class="code" href="class_system_sharp_1_1_components_1_1_process.html">Process</a> process = <span class="keyword">new</span> <a class="code" href="class_system_sharp_1_1_components_1_1_process.html">Process</a>(</div>
<div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;                <span class="keyword">this</span>,</div>
<div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;                <a class="code" href="class_system_sharp_1_1_components_1_1_process.html">Process</a>.<a class="code" href="class_system_sharp_1_1_components_1_1_process.html#abe8ad6117328f0ed4386eb9f95036615">EProcessKind</a>.Threaded,</div>
<div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;                func)</div>
<div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;            {</div>
<div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;                Predicate = predicate,</div>
<div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;                Sensitivity = DesignContext.MakeEventList(sensitive)</div>
<div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;            };</div>
<div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;            Context.RegisterProcess(process);</div>
<div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;            process.Schedule(0);</div>
<div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;            <span class="keywordflow">return</span> process;</div>
<div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;        }</div>
<div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;</div>
<div class="line"><a name="l00293"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_component.html#afdcce7be310b3b76f1f1599fc41babef">  293</a></span>&#160;        <span class="keyword">protected</span> <span class="keywordtype">void</span> <a class="code" href="class_system_sharp_1_1_components_1_1_component.html#afdcce7be310b3b76f1f1599fc41babef">AddClockedThread</a>(Action func, Func&lt;bool&gt; predicate, params <a class="code" href="interface_system_sharp_1_1_components_1_1_i_in_port.html">IInPort</a>[] sensitive)</div>
<div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;        {</div>
<div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;            AddClockedThreadInternal(func, predicate, sensitive);</div>
<div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;        }</div>
<div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;</div>
<div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;        [<a class="code" href="class_system_sharp_1_1_components_1_1_map_to_intrinsic_function.html">MapToIntrinsicFunction</a>(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html">IntrinsicFunction</a>.<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html#a762cc72094d2dc70761af21448c23880">EAction</a>.Wait)]</div>
<div class="line"><a name="l00303"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_component.html#a4d8690dbea865cc35696ab5a5156e3bf">  303</a></span>&#160;        <span class="keyword">protected</span> <span class="keywordtype">void</span> <a class="code" href="class_system_sharp_1_1_components_1_1_component.html#a4d8690dbea865cc35696ab5a5156e3bf">NextTrigger</a>(<a class="code" href="class_system_sharp_1_1_components_1_1_time.html">Time</a> delta)</div>
<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;        {</div>
<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;            <a class="code" href="class_system_sharp_1_1_components_1_1_process.html">Process</a> curp = Context.CurrentProcess;</div>
<div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;            curp.Sensitivity = emptyEvents;</div>
<div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;            curp.Schedule(delta.GetTicks(Context));</div>
<div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;        }</div>
<div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;</div>
<div class="line"><a name="l00314"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_component.html#a4f4060504997f39520c0a299583a8b25">  314</a></span>&#160;        <span class="keyword">protected</span> <span class="keywordtype">void</span> <a class="code" href="class_system_sharp_1_1_components_1_1_component.html#a4f4060504997f39520c0a299583a8b25">NextTrigger</a>(params <a class="code" href="class_system_sharp_1_1_components_1_1_abstract_event.html">AbstractEvent</a>[] sensitive)</div>
<div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;        {</div>
<div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;            <a class="code" href="class_system_sharp_1_1_components_1_1_process.html">Process</a> curp = Context.CurrentProcess;</div>
<div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;            curp.Sensitivity = sensitive;</div>
<div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;        }</div>
<div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;</div>
<div class="line"><a name="l00324"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_component.html#ad46541678bc5b9774af415fd6877dd20">  324</a></span>&#160;        <span class="keyword">protected</span> <span class="keywordtype">void</span> <a class="code" href="class_system_sharp_1_1_components_1_1_component.html#ad46541678bc5b9774af415fd6877dd20">NextTrigger</a>(params <a class="code" href="interface_system_sharp_1_1_components_1_1_i_in_port.html">IInPort</a>[] sensitive)</div>
<div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;        {</div>
<div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;            <a class="code" href="class_system_sharp_1_1_components_1_1_process.html">Process</a> curp = Context.CurrentProcess;</div>
<div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;            curp.Sensitivity = DesignContext.MakeEventList(sensitive);</div>
<div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;        }</div>
<div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;</div>
<div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;        <span class="keyword">private</span> <span class="keyword">static</span> IEnumerable&lt;FieldInfo&gt; FindFields(Type type)</div>
<div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;        {</div>
<div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;            <span class="keywordflow">if</span> (type != null)</div>
<div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;            {</div>
<div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;                <span class="keywordflow">return</span> type.GetFields(</div>
<div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;                    BindingFlags.Instance |</div>
<div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;                    BindingFlags.Public |</div>
<div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;                    BindingFlags.NonPublic |</div>
<div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;                    BindingFlags.DeclaredOnly)</div>
<div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;                    .Concat(FindFields(type.BaseType));</div>
<div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;            }</div>
<div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;            <span class="keywordflow">else</span></div>
<div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;            {</div>
<div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;                <span class="keywordflow">return</span> Enumerable.Empty&lt;FieldInfo&gt;();</div>
<div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;            }</div>
<div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;        }</div>
<div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;</div>
<div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;        <span class="keyword">private</span> <span class="keyword">static</span> IEnumerable&lt;PropertyInfo&gt; FindProperties(Type type)</div>
<div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;        {</div>
<div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;            <span class="keywordflow">if</span> (type != null)</div>
<div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;            {</div>
<div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;                <span class="keywordflow">return</span> type.GetProperties(</div>
<div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;                    BindingFlags.Instance |</div>
<div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;                    BindingFlags.NonPublic |</div>
<div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;                    BindingFlags.Public |</div>
<div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;                    BindingFlags.DeclaredOnly)</div>
<div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;                    .Concat(FindProperties(type.BaseType));</div>
<div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;            }</div>
<div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;            <span class="keywordflow">else</span></div>
<div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;            {</div>
<div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;                <span class="keywordflow">return</span> Enumerable.Empty&lt;PropertyInfo&gt;();</div>
<div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;            }</div>
<div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;        }</div>
<div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;</div>
<div class="line"><a name="l00370"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_component.html#afe716e869e98f9e89e6ee1c9f7d67ae6">  370</a></span>&#160;        <span class="keyword">virtual</span> <span class="keyword">protected</span> <span class="keywordtype">void</span> <a class="code" href="class_system_sharp_1_1_components_1_1_component.html#afe716e869e98f9e89e6ee1c9f7d67ae6">OnAnalysis</a>()</div>
<div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;        {</div>
<div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;            Type type = GetType();</div>
<div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;            var fis = FindFields(type);</div>
<div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;            <span class="keywordflow">foreach</span> (FieldInfo fi <span class="keywordflow">in</span> fis)</div>
<div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;            {</div>
<div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160;                <span class="comment">// Skip backing fields of properties (these are mapped to ports)</span></div>
<div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160;                <span class="comment">// There is currently no elegant way of doing this. The only possibility is to check whether the</span></div>
<div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;                <span class="comment">// field name contains a &quot;magic&quot; character which is usually not allowed as an identifier name.</span></div>
<div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160;                <span class="keywordflow">if</span> (fi.Name.Contains(<span class="charliteral">&#39;&lt;&#39;</span>))</div>
<div class="line"><a name="l00380"></a><span class="lineno">  380</span>&#160;                    <span class="keywordflow">continue</span>;</div>
<div class="line"><a name="l00381"></a><span class="lineno">  381</span>&#160;</div>
<div class="line"><a name="l00382"></a><span class="lineno">  382</span>&#160;                <span class="keywordtype">object</span> fvalue = fi.GetValue(<span class="keyword">this</span>);</div>
<div class="line"><a name="l00383"></a><span class="lineno">  383</span>&#160;                <a class="code" href="interface_system_sharp_1_1_meta_1_1_i_containment_implementor.html">IContainmentImplementor</a> ici = fvalue as <a class="code" href="interface_system_sharp_1_1_meta_1_1_i_containment_implementor.html">IContainmentImplementor</a>;</div>
<div class="line"><a name="l00384"></a><span class="lineno">  384</span>&#160;                <span class="keywordflow">if</span> (ici != null)</div>
<div class="line"><a name="l00385"></a><span class="lineno">  385</span>&#160;                {</div>
<div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;                    ici.SetOwner(Descriptor, fi, IndexSpec.Empty);</div>
<div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;                }</div>
<div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160;            }</div>
<div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160;</div>
<div class="line"><a name="l00390"></a><span class="lineno">  390</span>&#160;            var pis = FindProperties(type);</div>
<div class="line"><a name="l00391"></a><span class="lineno">  391</span>&#160;            <span class="keywordflow">foreach</span> (PropertyInfo pi <span class="keywordflow">in</span> pis)</div>
<div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160;            {</div>
<div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160;                Type propType = pi.PropertyType;</div>
<div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;                <a class="code" href="class_system_sharp_1_1_components_1_1_rewrite_declaration.html">RewriteDeclaration</a> rwDecl = (<a class="code" href="class_system_sharp_1_1_components_1_1_rewrite_declaration.html">RewriteDeclaration</a>)Attribute.GetCustomAttribute(</div>
<div class="line"><a name="l00395"></a><span class="lineno">  395</span>&#160;                    propType, typeof(<a class="code" href="class_system_sharp_1_1_components_1_1_rewrite_declaration.html">RewriteDeclaration</a>), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00396"></a><span class="lineno">  396</span>&#160;                <span class="keywordflow">if</span> (rwDecl != null)</div>
<div class="line"><a name="l00397"></a><span class="lineno">  397</span>&#160;                    rwDecl.ImplementDeclaration(Descriptor, pi);</div>
<div class="line"><a name="l00398"></a><span class="lineno">  398</span>&#160;            }</div>
<div class="line"><a name="l00399"></a><span class="lineno">  399</span>&#160;        }</div>
<div class="line"><a name="l00400"></a><span class="lineno">  400</span>&#160;</div>
<div class="line"><a name="l00405"></a><span class="lineno">  405</span>&#160;        <span class="keyword">internal</span> <span class="keywordtype">void</span> OnSynthesisInternal(<a class="code" href="interface_system_sharp_1_1_synthesis_1_1_i_synthesis_context.html">ISynthesisContext</a> ctx)</div>
<div class="line"><a name="l00406"></a><span class="lineno">  406</span>&#160;        {</div>
<div class="line"><a name="l00407"></a><span class="lineno">  407</span>&#160;            OnSynthesis(ctx);</div>
<div class="line"><a name="l00408"></a><span class="lineno">  408</span>&#160;        }</div>
<div class="line"><a name="l00409"></a><span class="lineno">  409</span>&#160;</div>
<div class="line"><a name="l00415"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_component.html#af92696c1d2ed6ac728abc125e008d501">  415</a></span>&#160;        <span class="keyword">virtual</span> <span class="keyword">protected</span> <span class="keywordtype">void</span> <a class="code" href="class_system_sharp_1_1_components_1_1_component.html#af92696c1d2ed6ac728abc125e008d501">OnSynthesis</a>(<a class="code" href="interface_system_sharp_1_1_synthesis_1_1_i_synthesis_context.html">ISynthesisContext</a> ctx)</div>
<div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160;        {</div>
<div class="line"><a name="l00417"></a><span class="lineno">  417</span>&#160;            ctx.DoBehavioralAnalysisAndGenerate(<span class="keyword">this</span>);</div>
<div class="line"><a name="l00418"></a><span class="lineno">  418</span>&#160;        }</div>
<div class="line"><a name="l00419"></a><span class="lineno">  419</span>&#160;</div>
<div class="line"><a name="l00423"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_component.html#a0fbf3618498aec1964b817cdd0742890">  423</a></span>&#160;        <span class="keyword">public</span> <a class="code" href="class_system_sharp_1_1_meta_1_1_component_descriptor.html">ComponentDescriptor</a> Descriptor { <span class="keyword">get</span>; <span class="keyword">internal</span> set; }</div>
<div class="line"><a name="l00424"></a><span class="lineno">  424</span>&#160;</div>
<div class="line"><a name="l00428"></a><span class="lineno">  428</span>&#160;        <a class="code" href="class_system_sharp_1_1_meta_1_1_descriptor_base.html">DescriptorBase</a> IDescriptive.Descriptor</div>
<div class="line"><a name="l00429"></a><span class="lineno">  429</span>&#160;        {</div>
<div class="line"><a name="l00430"></a><span class="lineno">  430</span>&#160;            <span class="keyword">get</span> { <span class="keywordflow">return</span> Descriptor; }</div>
<div class="line"><a name="l00431"></a><span class="lineno">  431</span>&#160;        }</div>
<div class="line"><a name="l00432"></a><span class="lineno">  432</span>&#160;</div>
<div class="line"><a name="l00439"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_component.html#aa7e795154d53f53d486fbcce7ef5aaaf">  439</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_system_sharp_1_1_components_1_1_component.html#aa7e795154d53f53d486fbcce7ef5aaaf">SetOwner</a>(<a class="code" href="class_system_sharp_1_1_meta_1_1_descriptor_base.html">DescriptorBase</a> owner, MemberInfo declSite, <a class="code" href="class_system_sharp_1_1_data_types_1_1_index_spec.html">IndexSpec</a> indexSpec)</div>
<div class="line"><a name="l00440"></a><span class="lineno">  440</span>&#160;        {</div>
<div class="line"><a name="l00441"></a><span class="lineno">  441</span>&#160;            <a class="code" href="interface_system_sharp_1_1_meta_1_1_i_component_descriptor.html">IComponentDescriptor</a> cowner = (<a class="code" href="interface_system_sharp_1_1_meta_1_1_i_component_descriptor.html">IComponentDescriptor</a>)owner;</div>
<div class="line"><a name="l00442"></a><span class="lineno">  442</span>&#160;            FieldInfo field = (FieldInfo)declSite;</div>
<div class="line"><a name="l00443"></a><span class="lineno">  443</span>&#160;            <span class="keywordflow">if</span> (Descriptor.Owner == null)</div>
<div class="line"><a name="l00444"></a><span class="lineno">  444</span>&#160;            {</div>
<div class="line"><a name="l00445"></a><span class="lineno">  445</span>&#160;                owner.AddChild(Descriptor, field, indexSpec);</div>
<div class="line"><a name="l00446"></a><span class="lineno">  446</span>&#160;            }</div>
<div class="line"><a name="l00447"></a><span class="lineno">  447</span>&#160;            <span class="keywordflow">else</span></div>
<div class="line"><a name="l00448"></a><span class="lineno">  448</span>&#160;            {</div>
<div class="line"><a name="l00449"></a><span class="lineno">  449</span>&#160;                Context.Report(EIssueClass.Error, <span class="stringliteral">&quot;Component instance of &quot;</span> + GetType().Name + <span class="stringliteral">&quot; is declared multiple times: &quot;</span> +</div>
<div class="line"><a name="l00450"></a><span class="lineno">  450</span>&#160;                    <span class="stringliteral">&quot;first declaration is &quot;</span> + Descriptor.GetFullName() + <span class="stringliteral">&quot;, second one in &quot;</span> + cowner.GetFullName() + <span class="stringliteral">&quot;, field &quot;</span> +</div>
<div class="line"><a name="l00451"></a><span class="lineno">  451</span>&#160;                    declSite.Name);</div>
<div class="line"><a name="l00452"></a><span class="lineno">  452</span>&#160;            }</div>
<div class="line"><a name="l00453"></a><span class="lineno">  453</span>&#160;        }</div>
<div class="line"><a name="l00454"></a><span class="lineno">  454</span>&#160;</div>
<div class="line"><a name="l00458"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_component.html#a903fa72c9c562e704fc0648d70a9bcab">  458</a></span>&#160;        <span class="keyword">public</span> <a class="code" href="interface_system_sharp_1_1_components_1_1_i_auto_binder.html">IAutoBinder</a> AutoBinder { <span class="keyword">get</span>; set; }</div>
<div class="line"><a name="l00459"></a><span class="lineno">  459</span>&#160;</div>
<div class="line"><a name="l00472"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_component.html#a56a35638ea6a794c818c5de4ee979fe0">  472</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_system_sharp_1_1_components_1_1_component.html#a56a35638ea6a794c818c5de4ee979fe0">IsEquivalent</a>(<a class="code" href="class_system_sharp_1_1_components_1_1_component.html">Component</a> component)</div>
<div class="line"><a name="l00473"></a><span class="lineno">  473</span>&#160;        {</div>
<div class="line"><a name="l00474"></a><span class="lineno">  474</span>&#160;            <span class="keywordflow">return</span> component == <span class="keyword">this</span>;</div>
<div class="line"><a name="l00475"></a><span class="lineno">  475</span>&#160;        }</div>
<div class="line"><a name="l00476"></a><span class="lineno">  476</span>&#160;</div>
<div class="line"><a name="l00482"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_component.html#af029aaf01d5f09095241ccc0b2566626">  482</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="class_system_sharp_1_1_components_1_1_component.html#af029aaf01d5f09095241ccc0b2566626">GetBehaviorHashCode</a>()</div>
<div class="line"><a name="l00483"></a><span class="lineno">  483</span>&#160;        {</div>
<div class="line"><a name="l00484"></a><span class="lineno">  484</span>&#160;            <span class="keywordflow">return</span> RuntimeHelpers.GetHashCode(<span class="keyword">this</span>);</div>
<div class="line"><a name="l00485"></a><span class="lineno">  485</span>&#160;        }</div>
<div class="line"><a name="l00486"></a><span class="lineno">  486</span>&#160;</div>
<div class="line"><a name="l00490"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_component.html#a38100ebf182b1d69a1de2b4104fe6755">  490</a></span>&#160;        <span class="keyword">public</span> <a class="code" href="class_system_sharp_1_1_components_1_1_component.html">Component</a> Representant { <span class="keyword">get</span>; <span class="keyword">internal</span> set; }</div>
<div class="line"><a name="l00491"></a><span class="lineno">  491</span>&#160;    }</div>
<div class="line"><a name="l00492"></a><span class="lineno">  492</span>&#160;</div>
<div class="line"><a name="l00493"></a><span class="lineno">  493</span>&#160;}</div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_component_html_abb91da31da19033a4cf1fcfb006dd957"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_component.html#abb91da31da19033a4cf1fcfb006dd957">SystemSharp.Components.Component.AddProcess</a></div><div class="ttdeci">void AddProcess(Action func, params IInPort[] sensitive)</div><div class="ttdoc">Registers a triggered process. </div><div class="ttdef"><b>Definition:</b> <a href="_component_8cs_source.html#l00239">Component.cs:239</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_rewrite_declaration_html"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_rewrite_declaration.html">SystemSharp.Components.RewriteDeclaration</a></div><div class="ttdoc">If this attribute is attached to an interface, struct or class, it instructs the model analysis to tr...</div><div class="ttdef"><b>Definition:</b> <a href="_components_attributes_8cs_source.html#l00041">ComponentsAttributes.cs:41</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_component_html_a0ce99f29f1660e61df39f66149a66c20"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_component.html#a0ce99f29f1660e61df39f66149a66c20">SystemSharp.Components.Component.Component</a></div><div class="ttdeci">Component()</div><div class="ttdoc">Constructs a component instance. </div><div class="ttdef"><b>Definition:</b> <a href="_component_8cs_source.html#l00065">Component.cs:65</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_component_html_a1e6d9b59fa0eb7c82c0684155a340049"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_component.html#a1e6d9b59fa0eb7c82c0684155a340049">SystemSharp.Components.Component.AddProcess</a></div><div class="ttdeci">void AddProcess(Action func, params AbstractEvent[] sensitive)</div><div class="ttdoc">Registers a triggered process. </div><div class="ttdef"><b>Definition:</b> <a href="_component_8cs_source.html#l00221">Component.cs:221</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_component_html_af029aaf01d5f09095241ccc0b2566626"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_component.html#af029aaf01d5f09095241ccc0b2566626">SystemSharp.Components.Component.GetBehaviorHashCode</a></div><div class="ttdeci">virtual int GetBehaviorHashCode()</div><div class="ttdoc">returns a hash code such that for any two components c1 and c2 the following condition holds: c1...</div><div class="ttdef"><b>Definition:</b> <a href="_component_8cs_source.html#l00482">Component.cs:482</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_component_html_a4142ab9ea2e3d7b486cd39a79f1c112d"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_component.html#a4142ab9ea2e3d7b486cd39a79f1c112d">SystemSharp.Components.Component.PostInitialize</a></div><div class="ttdeci">virtual void PostInitialize()</div><div class="ttdoc">This method gets called after Initialize(). </div><div class="ttdef"><b>Definition:</b> <a href="_component_8cs_source.html#l00195">Component.cs:195</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_component_html_af61fbc9224ffed9332ecc1a21eb79b23"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_component.html#af61fbc9224ffed9332ecc1a21eb79b23">SystemSharp.Components.Component.PreInitialize</a></div><div class="ttdeci">virtual void PreInitialize()</div><div class="ttdoc">This method gets called prior to Initialize(). </div><div class="ttdef"><b>Definition:</b> <a href="_component_8cs_source.html#l00188">Component.cs:188</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_map_to_intrinsic_function_html"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_map_to_intrinsic_function.html">SystemSharp.Components.MapToIntrinsicFunction</a></div><div class="ttdoc">Any call to the tagged method will be translated to a SysDOM-intrinsic function call during decompila...</div><div class="ttdef"><b>Definition:</b> <a href="_components_attributes_8cs_source.html#l00512">ComponentsAttributes.cs:512</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_event_html"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_event.html">SystemSharp.Components.Event</a></div><div class="ttdoc">Event implementation </div><div class="ttdef"><b>Definition:</b> <a href="_event_8cs_source.html#l00087">Event.cs:87</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_static_evaluation_do_not_analyze_html"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_static_evaluation_do_not_analyze.html">SystemSharp.Components.StaticEvaluationDoNotAnalyze</a></div><div class="ttdoc">Indicates that the tagged method should not be analyzed for side effects and moreover be statically e...</div><div class="ttdef"><b>Definition:</b> <a href="_components_attributes_8cs_source.html#l00803">ComponentsAttributes.cs:803</a></div></div>
<div class="ttc" id="interface_system_sharp_1_1_components_1_1_i_in_port_html"><div class="ttname"><a href="interface_system_sharp_1_1_components_1_1_i_in_port.html">SystemSharp.Components.IInPort</a></div><div class="ttdoc">This interface models a port with inbound dataflow. </div><div class="ttdef"><b>Definition:</b> <a href="_signals_core_8cs_source.html#l00041">SignalsCore.cs:41</a></div></div>
<div class="ttc" id="interface_system_sharp_1_1_meta_1_1_i_descriptive_html"><div class="ttname"><a href="interface_system_sharp_1_1_meta_1_1_i_descriptive.html">SystemSharp.Meta.IDescriptive</a></div><div class="ttdoc">Interface for all objects which are described by a descriptor. </div><div class="ttdef"><b>Definition:</b> <a href="_components_reflection_8cs_source.html#l00768">ComponentsReflection.cs:768</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_component_html_afdcce7be310b3b76f1f1599fc41babef"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_component.html#afdcce7be310b3b76f1f1599fc41babef">SystemSharp.Components.Component.AddClockedThread</a></div><div class="ttdeci">void AddClockedThread(Action func, Func&lt; bool &gt; predicate, params IInPort[] sensitive)</div><div class="ttdoc">Registers a threaded process whereby the Tick event is triggered whenever the specified predicate eva...</div><div class="ttdef"><b>Definition:</b> <a href="_component_8cs_source.html#l00293">Component.cs:293</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_component_html_a810368251d018ad12a4a63b618a7dd2b"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_component.html#a810368251d018ad12a4a63b618a7dd2b">SystemSharp.Components.Component.NRisingEdges</a></div><div class="ttdeci">static async Task NRisingEdges(In&lt; StdLogic &gt; clk, int numTicks)</div><div class="ttdoc">Represents numTicks  rising edges. </div><div class="ttdef"><b>Definition:</b> <a href="_component_8cs_source.html#l00128">Component.cs:128</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_abstract_event_html"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_abstract_event.html">SystemSharp.Components.AbstractEvent</a></div><div class="ttdoc">Abstract base class for events </div><div class="ttdef"><b>Definition:</b> <a href="_event_8cs_source.html#l00035">Event.cs:35</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_component_html_afc8c154c36493b4fbdf4b76ed0d1ecb5"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_component.html#afc8c154c36493b4fbdf4b76ed0d1ecb5">SystemSharp.Components.Component.Any</a></div><div class="ttdeci">static MultiEvent Any(params IInPort[] signals)</div><div class="ttdoc">Combines the changed events of multiple signals to a single event which is triggered whenever any of ...</div><div class="ttdef"><b>Definition:</b> <a href="_component_8cs_source.html#l00163">Component.cs:163</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_component_html_a40334aded171d93dfa44a8aa12ed91bc"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_component.html#a40334aded171d93dfa44a8aa12ed91bc">SystemSharp.Components.Component.Any</a></div><div class="ttdeci">static MultiEvent Any(params AbstractEvent[] events)</div><div class="ttdoc">Combines multiple events to a single event which is triggered whenever any event is triggered...</div><div class="ttdef"><b>Definition:</b> <a href="_component_8cs_source.html#l00172">Component.cs:172</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_component_html_af92696c1d2ed6ac728abc125e008d501"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_component.html#af92696c1d2ed6ac728abc125e008d501">SystemSharp.Components.Component.OnSynthesis</a></div><div class="ttdeci">virtual void OnSynthesis(ISynthesisContext ctx)</div><div class="ttdoc">This method is called upon synthesis. Overwrite it to perform custom synthesis tasks, such as generating a core generator script. </div><div class="ttdef"><b>Definition:</b> <a href="_component_8cs_source.html#l00415">Component.cs:415</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_static_evaluation_html"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_static_evaluation.html">SystemSharp.Components.StaticEvaluation</a></div><div class="ttdoc">This attribute declares a method to be suitable for static evaluation. Non-void methods only...</div><div class="ttdef"><b>Definition:</b> <a href="_components_attributes_8cs_source.html#l00703">ComponentsAttributes.cs:703</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_component_html_aa7e795154d53f53d486fbcce7ef5aaaf"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_component.html#aa7e795154d53f53d486fbcce7ef5aaaf">SystemSharp.Components.Component.SetOwner</a></div><div class="ttdeci">virtual void SetOwner(DescriptorBase owner, MemberInfo declSite, IndexSpec indexSpec)</div><div class="ttdoc">Sets the owning descriptor of this component. </div><div class="ttdef"><b>Definition:</b> <a href="_component_8cs_source.html#l00439">Component.cs:439</a></div></div>
<div class="ttc" id="interface_system_sharp_1_1_synthesis_1_1_i_synthesis_context_html"><div class="ttname"><a href="interface_system_sharp_1_1_synthesis_1_1_i_synthesis_context.html">SystemSharp.Synthesis.ISynthesisContext</a></div><div class="ttdoc">The synthesis context interface provides the &quot;glue&quot; between project generator, code generator and des...</div><div class="ttdef"><b>Definition:</b> <a href="_synthesis_8cs_source.html#l00153">Synthesis.cs:153</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_predicated_event_html"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_predicated_event.html">SystemSharp.Components.PredicatedEvent</a></div><div class="ttdoc">Represents a predicated event which is triggered whenever some associated event is triggered AND a pr...</div><div class="ttdef"><b>Definition:</b> <a href="_event_8cs_source.html#l00306">Event.cs:306</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_component_html_ad46541678bc5b9774af415fd6877dd20"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_component.html#ad46541678bc5b9774af415fd6877dd20">SystemSharp.Components.Component.NextTrigger</a></div><div class="ttdeci">void NextTrigger(params IInPort[] sensitive)</div><div class="ttdoc">Changes a process sensitivity list. </div><div class="ttdef"><b>Definition:</b> <a href="_component_8cs_source.html#l00324">Component.cs:324</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_analysis_1_1_tick_attribute_html"><div class="ttname"><a href="class_system_sharp_1_1_analysis_1_1_tick_attribute.html">SystemSharp.Analysis.TickAttribute</a></div><div class="ttdoc">The tick attribute is used to tag the Component.Tick() method which models a single clock step...</div><div class="ttdef"><b>Definition:</b> <a href="_async_state_machines_8cs_source.html#l00123">AsyncStateMachines.cs:123</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_component_html_a6a810195042b9f3c8cd4ca2f9fe84268"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_component.html#a6a810195042b9f3c8cd4ca2f9fe84268">SystemSharp.Components.Component.OnSimulationStopped</a></div><div class="ttdeci">virtual void OnSimulationStopped()</div><div class="ttdoc">This method gets called when the simulation stopped. Overwrite it to perform any cleanup tasks...</div><div class="ttdef"><b>Definition:</b> <a href="_component_8cs_source.html#l00202">Component.cs:202</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_component_html_afe716e869e98f9e89e6ee1c9f7d67ae6"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_component.html#afe716e869e98f9e89e6ee1c9f7d67ae6">SystemSharp.Components.Component.OnAnalysis</a></div><div class="ttdeci">virtual void OnAnalysis()</div><div class="ttdoc">This method is called upon model analysis. </div><div class="ttdef"><b>Definition:</b> <a href="_component_8cs_source.html#l00370">Component.cs:370</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_component_html_a8692f591ead72696120c85c117b96bf4"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_component.html#a8692f591ead72696120c85c117b96bf4">SystemSharp.Components.Component.Initialize</a></div><div class="ttdeci">virtual void Initialize()</div><div class="ttdoc">Override this method to perform initialization tasks, such as registering a process. </div><div class="ttdef"><b>Definition:</b> <a href="_component_8cs_source.html#l00181">Component.cs:181</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_design_context_html"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_design_context.html">SystemSharp.Components.DesignContext</a></div><div class="ttdoc">This class encapsulates the simulation context. Each design has an associated simulation context...</div><div class="ttdef"><b>Definition:</b> <a href="_design_context_8cs_source.html#l00047">DesignContext.cs:47</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_component_html_a4f4060504997f39520c0a299583a8b25"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_component.html#a4f4060504997f39520c0a299583a8b25">SystemSharp.Components.Component.NextTrigger</a></div><div class="ttdeci">void NextTrigger(params AbstractEvent[] sensitive)</div><div class="ttdoc">Changes a process sensitivity list. </div><div class="ttdef"><b>Definition:</b> <a href="_component_8cs_source.html#l00314">Component.cs:314</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_component_html_a1de96fc4579daeff4ecfd6595e1db3f5"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_component.html#a1de96fc4579daeff4ecfd6595e1db3f5">SystemSharp.Components.Component.NTicks</a></div><div class="ttdeci">static async Task NTicks(int numTicks)</div><div class="ttdoc">Represents numTicks  ticks </div><div class="ttdef"><b>Definition:</b> <a href="_component_8cs_source.html#l00108">Component.cs:108</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_process_html_abe8ad6117328f0ed4386eb9f95036615"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_process.html#abe8ad6117328f0ed4386eb9f95036615">SystemSharp.Components.Process.EProcessKind</a></div><div class="ttdeci">EProcessKind</div><div class="ttdoc">Describes the kind of the process. </div><div class="ttdef"><b>Definition:</b> <a href="_process_core_8cs_source.html#l00807">ProcessCore.cs:807</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_map_to_wait_n_ticks_rewrite_await_html"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_map_to_wait_n_ticks_rewrite_await.html">SystemSharp.Components.MapToWaitNTicksRewriteAwait</a></div><div class="ttdoc">Transforms expressions like await n.Ticks() to a SysDOM-compliant representation using &quot;WaitUntil&quot; in...</div><div class="ttdef"><b>Definition:</b> <a href="_wait_rewriter_8cs_source.html#l00041">WaitRewriter.cs:41</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_design_context_html_a3a49f2b84c04d049259fe137115d50c1"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_design_context.html#a3a49f2b84c04d049259fe137115d50c1">SystemSharp.Components.DesignContext.MakeEventList</a></div><div class="ttdeci">static AbstractEvent[] MakeEventList(params IInPort[] signals)</div><div class="ttdoc">Converts a number of signals to an event list. </div><div class="ttdef"><b>Definition:</b> <a href="_design_context_8cs_source.html#l00903">DesignContext.cs:903</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_component_html_a4d8690dbea865cc35696ab5a5156e3bf"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_component.html#a4d8690dbea865cc35696ab5a5156e3bf">SystemSharp.Components.Component.NextTrigger</a></div><div class="ttdeci">void NextTrigger(Time delta)</div><div class="ttdoc">Changes a triggered process sensitivity list and request it to be scheduled in the future...</div><div class="ttdef"><b>Definition:</b> <a href="_component_8cs_source.html#l00303">Component.cs:303</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_multi_event_html"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_multi_event.html">SystemSharp.Components.MultiEvent</a></div><div class="ttdoc">Represents a combined event which is triggered whenever one of multiple events is triggered...</div><div class="ttdef"><b>Definition:</b> <a href="_event_8cs_source.html#l00200">Event.cs:200</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_component_html_a75ff16ba21959d251ec876313d5d324d"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_component.html#a75ff16ba21959d251ec876313d5d324d">SystemSharp.Components.Component.RisingEdge</a></div><div class="ttdeci">static PredicatedEvent RisingEdge(In&lt; StdLogic &gt; clk)</div><div class="ttdoc">Represents one rising edge. </div><div class="ttdef"><b>Definition:</b> <a href="_component_8cs_source.html#l00118">Component.cs:118</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_component_html_abb3edcb7fa090e32393ebfbbc5a5eb2d"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_component.html#abb3edcb7fa090e32393ebfbbc5a5eb2d">SystemSharp.Components.Component.Bind</a></div><div class="ttdeci">void Bind(Action bindAction)</div><div class="ttdoc">Registers an action to be performed before model elaboration. This is especially useful for performin...</div><div class="ttdef"><b>Definition:</b> <a href="_component_8cs_source.html#l00211">Component.cs:211</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function_html_a762cc72094d2dc70761af21448c23880"><div class="ttname"><a href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html#a762cc72094d2dc70761af21448c23880">SystemSharp.SysDOM.IntrinsicFunction.EAction</a></div><div class="ttdeci">EAction</div><div class="ttdoc">Function op-code </div><div class="ttdef"><b>Definition:</b> <a href="_intrinsic_functions_8cs_source.html#l00344">IntrinsicFunctions.cs:344</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_component_html_a56a35638ea6a794c818c5de4ee979fe0"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_component.html#a56a35638ea6a794c818c5de4ee979fe0">SystemSharp.Components.Component.IsEquivalent</a></div><div class="ttdeci">virtual bool IsEquivalent(Component component)</div><div class="ttdoc">Tells whether this component is equivalent to another one. Equivalent means that both components have...</div><div class="ttdef"><b>Definition:</b> <a href="_component_8cs_source.html#l00472">Component.cs:472</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_default_auto_binder_html"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_default_auto_binder.html">SystemSharp.Components.DefaultAutoBinder</a></div><div class="ttdoc">A default implementation of the binder service </div><div class="ttdef"><b>Definition:</b> <a href="_auto_binding_8cs_source.html#l00153">AutoBinding.cs:153</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_component_html_ad5ad780d927f150155272e75d0b5944f"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_component.html#ad5ad780d927f150155272e75d0b5944f">SystemSharp.Components.Component.AddProcess</a></div><div class="ttdeci">void AddProcess(Action func)</div><div class="ttdoc">Registers a triggered process without sensitivity. The process gets executed after the beginning of t...</div><div class="ttdef"><b>Definition:</b> <a href="_component_8cs_source.html#l00248">Component.cs:248</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function_html"><div class="ttname"><a href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html">SystemSharp.SysDOM.IntrinsicFunction</a></div><div class="ttdoc">Describes a SysDOM-intrinsic function. </div><div class="ttdef"><b>Definition:</b> <a href="_intrinsic_functions_8cs_source.html#l00339">IntrinsicFunctions.cs:339</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_process_html"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_process.html">SystemSharp.Components.Process</a></div><div class="ttdoc">This class represents a process. </div><div class="ttdef"><b>Definition:</b> <a href="_process_core_8cs_source.html#l00794">ProcessCore.cs:794</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_data_types_1_1_index_spec_html"><div class="ttname"><a href="class_system_sharp_1_1_data_types_1_1_index_spec.html">SystemSharp.DataTypes.IndexSpec</a></div><div class="ttdoc">An index specifier is an aggregation of dimensional specifiers. </div><div class="ttdef"><b>Definition:</b> <a href="_common_8cs_source.html#l00475">Common.cs:475</a></div></div>
<div class="ttc" id="interface_system_sharp_1_1_meta_1_1_i_containment_implementor_html"><div class="ttname"><a href="interface_system_sharp_1_1_meta_1_1_i_containment_implementor.html">SystemSharp.Meta.IContainmentImplementor</a></div><div class="ttdoc">This interface describes model elements which are owned by some superordinate descriptor. </div><div class="ttdef"><b>Definition:</b> <a href="_components_reflection_8cs_source.html#l00173">ComponentsReflection.cs:173</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_time_html"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_time.html">SystemSharp.Components.Time</a></div><div class="ttdoc">This class encodes a time or period of time which is specified as a pair of value and time unit...</div><div class="ttdef"><b>Definition:</b> <a href="_components_core_8cs_source.html#l00222">ComponentsCore.cs:222</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_map_to_wait_n_ticks_rewrite_call_html"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_map_to_wait_n_ticks_rewrite_call.html">SystemSharp.Components.MapToWaitNTicksRewriteCall</a></div><div class="ttdoc">Transforms expressions like await n.Ticks() to a SysDOM-compliant representation using &quot;WaitUntil&quot; in...</div><div class="ttdef"><b>Definition:</b> <a href="_wait_rewriter_8cs_source.html#l00116">WaitRewriter.cs:116</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_design_object_html"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_design_object.html">SystemSharp.Components.DesignObject</a></div><div class="ttdoc">The DesignObject is the abstract base class of M0 modeling classes, such as Component and Channel...</div><div class="ttdef"><b>Definition:</b> <a href="_components_core_8cs_source.html#l00045">ComponentsCore.cs:45</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_component_html_ae591fd0484a69ac722c66ff32d19f0c2"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_component.html#ae591fd0484a69ac722c66ff32d19f0c2">SystemSharp.Components.Component.NFallingEdges</a></div><div class="ttdeci">static async Task NFallingEdges(In&lt; StdLogic &gt; clk, int numTicks)</div><div class="ttdoc">Represents numTicks  falling edges. </div><div class="ttdef"><b>Definition:</b> <a href="_component_8cs_source.html#l00151">Component.cs:151</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_component_html_a10bc83162f63c87b8d516572d2e34b50"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_component.html#a10bc83162f63c87b8d516572d2e34b50">SystemSharp.Components.Component.FallingEdge</a></div><div class="ttdeci">static PredicatedEvent FallingEdge(In&lt; StdLogic &gt; clk)</div><div class="ttdoc">Represents one falling edge. </div><div class="ttdef"><b>Definition:</b> <a href="_component_8cs_source.html#l00141">Component.cs:141</a></div></div>
<div class="ttc" id="interface_system_sharp_1_1_meta_1_1_i_component_descriptor_html"><div class="ttname"><a href="interface_system_sharp_1_1_meta_1_1_i_component_descriptor.html">SystemSharp.Meta.IComponentDescriptor</a></div><div class="ttdoc">Base interface for component descriptors. </div><div class="ttdef"><b>Definition:</b> <a href="_components_reflection_8cs_source.html#l01923">ComponentsReflection.cs:1923</a></div></div>
<div class="ttc" id="interface_system_sharp_1_1_components_1_1_i_auto_binder_html"><div class="ttname"><a href="interface_system_sharp_1_1_components_1_1_i_auto_binder.html">SystemSharp.Components.IAutoBinder</a></div><div class="ttdoc">Binder service interface </div><div class="ttdef"><b>Definition:</b> <a href="_auto_binding_8cs_source.html#l00081">AutoBinding.cs:81</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_meta_1_1_component_descriptor_html"><div class="ttname"><a href="class_system_sharp_1_1_meta_1_1_component_descriptor.html">SystemSharp.Meta.ComponentDescriptor</a></div><div class="ttdoc">Describes a component. </div><div class="ttdef"><b>Definition:</b> <a href="_components_reflection_8cs_source.html#l02092">ComponentsReflection.cs:2092</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_component_html"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_component.html">SystemSharp.Components.Component</a></div><div class="ttdoc">The abstract base class for defining components. </div><div class="ttdef"><b>Definition:</b> <a href="_component_8cs_source.html#l00038">Component.cs:38</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_component_html_a1bb47ad0d55c37e2193c3e5891ef5e92"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_component.html#a1bb47ad0d55c37e2193c3e5891ef5e92">SystemSharp.Components.Component.AddThread</a></div><div class="ttdeci">void AddThread(Action func)</div><div class="ttdoc">Registers a threaded process. </div><div class="ttdef"><b>Definition:</b> <a href="_component_8cs_source.html#l00262">Component.cs:262</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_meta_1_1_descriptor_base_html"><div class="ttname"><a href="class_system_sharp_1_1_meta_1_1_descriptor_base.html">SystemSharp.Meta.DescriptorBase</a></div><div class="ttdoc">Base implementation of any descriptor. </div><div class="ttdef"><b>Definition:</b> <a href="_components_reflection_8cs_source.html#l00362">ComponentsReflection.cs:362</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_bb5e995590685548b7e11478911ee7c3.html">SystemSharp-Google-SVN</a></li><li class="navelem"><a class="el" href="dir_8deefa4467a62b572b52d238d562b104.html">SystemSharp</a></li><li class="navelem"><a class="el" href="dir_0e5a72156f8560bbc472a395da2569d6.html">SystemSharp</a></li><li class="navelem"><a class="el" href="dir_9d3c30b4336bd92c64ccf0aeee487ace.html">SystemSharp</a></li><li class="navelem"><a class="el" href="dir_2796d14d34df7db36a6563efa1efe523.html">Components</a></li><li class="navelem"><a class="el" href="_component_8cs.html">Component.cs</a></li>
    <li class="footer">Generated on Thu Dec 26 2013 14:21:37 for SystemSharp by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>
